import mongoose from "mongoose";

const userSchema = new mongoose.Schema(
  {
    account: { type: String, required: true, unique: true, default: "admin" },
    password: { type: String, required: true, default: "123456" },
    name: { type: String, required: true, default: "峰伈" },
    position: { type: String, required: true, default: "社长" },
  },
  { collection: "User" }
);

const User = mongoose.model("User", userSchema);

export default User;
